From d801ac097818c66c631ee870b9fbbc5263e0c2ef Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 11 Jun 1993 10:29:55 +0000 Subject: [PATCH] * man.el (manual-entry): Recognize the subject(section) syntax. --- lisp/man.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/man.el b/lisp/man.el index 3b40ab02d06..26c3aa1400b 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -419,6 +419,13 @@ Universal argument ARG, is passed to Man-getpage-in-background." (if (string= default-entry "") (error "No man args given.") (setq man-args default-entry))) + ;; Recognize the subject(section) syntax. + (if (string-match "^[ \t]*\\([^( \t]+\\)[ \t]*(\\([^)]+\\))[ \t]*$" + man-args) + (setq man-args + (concat (substring man-args (match-beginning 2) (match-end 2)) + " " + (substring man-args (match-beginning 1) (match-end 1))))) (if Man-downcase-section-letters-p (setq man-args (Man-downcase man-args))) (Man-getpage-in-background man-args (consp arg)) -- 2.30.2